package com.share.repository;

import com.share.domain.MongoDB.StationLocation;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface StationLocationRepository extends MongoRepository<StationLocation, String> {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    StationLocation getByStationId(Long id);


    /**
     * 根据id删除
     * @param stationId
     */
    void deleteByStationId(Long stationId);
}
